import http from '@/utils/request'

export function shopDetail(shopId) {
	return http.get("/user/shop/detail/" + shopId)
}

export function getAllComments(params) {
	return http.post('/user/shop/comments' , params)
}

export function getMyWallet() {
	return http.get("/user/wallet/my")
}

export function getDirectInfo(param) {
	return http.post('/user/order/directpay/exec',param)
}

export function createDirectInfo(param) {
	return http.post('/user/order/directpay/create',param)
}

export function login(param) {
	return http.post('/login',param)
}

export function getRecommended(shopId) {
	return http.post("/user/shop/recommended/list/" + shopId)
}

export function getPrepayId() {
	return http.get('/pay/prepayid')
}

export function getGoodsById(goodsId) {
	return http.get('/user/goods/byid/' + goodsId)
}